<style>
    .centerintro_content table td, .centerintro_content table th {
        white-space: normal;
        padding: 5px 10px;
        border: 1px solid #DDD;
    }

    .newbtn {
        display: block;
        text-align: center;
        min-width: 150px;
        background: #2CA6D9;
        line-height: 40px;
        color: rgb(255, 255, 255);
        font-size: 16px;
        margin: 0px auto;
        width: 150px;
        margin-top: 20px;
    }

    .newbtn:hover {
        color: #fff;
        background: #2ca6d9;
    }

    .container p {
        line-height: 35px !important;
    }

    .container > div > table {
        width: 100% !important;
    }
</style>
<div class=" accessory">
    <!--内容块顶部-->
    <div class="centerintro_header">
        <div>
            <p style="padding-top:12px;line-height: 42px;text-align: center; color: #2ca6d9; font-size: 18px;">
                {$data.title}</p>
        </div>
        <div style="padding-bottom: 5px; height: 20px;">
            <p class="centerIntro_ui" style="text-align: center;">
                <span class="centerIntro_ui_li">
                    {if ($data.author!='')}
                     信息来源：{$data.author}
                    {/if}
                </span>
                <span class="centerIntro_ui_li">上传时间：{$data.create_time|date='Y年m月d日'}</span>
                <span class="centerIntro_ui_li">浏览次数：{$data.clicks}</span>
                <span class="centerIntro_ui_li"><a href="javascript:window.close()">[关闭窗口]</a></span>
            </p>
        </div>
    </div>
    <!--内容快内容-->
    <div class="white_bg mb20">
        <div class="container centerintro_content" style="">

            <div style="padding: 20px 0; font-size: 14px; min-height: 100px; word-wrap: break-word; white-space: normal; word-break: break-all;">
                {$data.content|raw}
            </div>
            {notempty name="data.file"}
            <div class="file" style="padding-bottom: 20px">
                <h3 style="font-size: 16px">下载附件：</h3>
                <ul>
                    {volist name="data.file" id="vo" key="k"}
                    <li style="padding-top:10px">
                        附件{$k}： <a href="javascript:;" onclick="downloadFile('{$vo.name}','{$vo.src}')">{$vo.name}</a>
                    </li>
                    {/volist}
                </ul>
            </div>
            {/notempty}
            {notempty name="data.hyperlink"}
            <div class="file" style="padding-bottom: 20px">
                <h3 style="font-size: 16px">相关链接：<a href="{$data.hyperlink}" target="_blank">{$data.hyperlink|substr=0,50}</a></h3>
            </div>
            {/notempty}
        </div>
    </div>
</div>
<script>
    function downloadFile(name, src) {
        let a = document.createElement('a')
        a.href = src
        a.download = name
        a.click()
    }
</script>